package org.pmt.first.resource

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.rounded.ArrowBack
import androidx.compose.material.icons.filled.FavoriteBorder
import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material.icons.rounded.Add
import androidx.compose.material.icons.rounded.AddCircle
import androidx.compose.material.icons.rounded.Check
import androidx.compose.material.icons.rounded.Close
import androidx.compose.material.icons.rounded.Favorite
import androidx.compose.material.icons.rounded.Home
import androidx.compose.material.icons.rounded.Info
import androidx.compose.material.icons.rounded.Person
import androidx.compose.material.icons.rounded.PlayArrow
import androidx.compose.material.icons.rounded.Search
import androidx.compose.material.icons.rounded.Settings
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.vector.ImageVector

/**
 * Author: pengmutian
 * Date: 2025/2/21 18:23
 * Description: IconRes
 */
object IconRes {
    val Home = Icons.Rounded.Home
    val Search = Icons.Rounded.Search
    val Settings = Icons.Rounded.Settings
    val Favorite = Icons.Rounded.Favorite
    val AddCircle = Icons.Rounded.AddCircle
    val Add = Icons.Rounded.Add
    val ArrowBack = Icons.AutoMirrored.Rounded.ArrowBack
    val Check = Icons.Rounded.Check
    val Close = Icons.Rounded.Close
    val MoreVert = Icons.Default.MoreVert
    val Person = Icons.Rounded.Person


    @Stable
    fun getIcon(tab: SettingsTab): ImageVector {
        return when (tab) {
            SettingsTab.APPEARANCE -> Icons.Rounded.Settings
            SettingsTab.THEME -> Icons.Rounded.Settings
            SettingsTab.UPDATE -> Icons.Rounded.Settings
            SettingsTab.PLAYER -> Icons.Rounded.Settings
            SettingsTab.MEDIA_SOURCE -> Icons.Rounded.Settings
            SettingsTab.MEDIA_SELECTOR -> Icons.Rounded.Settings
            SettingsTab.DANMAKU -> Icons.Rounded.Settings
            SettingsTab.PROXY -> Icons.Rounded.Settings
            SettingsTab.BT -> Icons.Filled.FavoriteBorder
            SettingsTab.CACHE -> Icons.Rounded.Settings
            SettingsTab.STORAGE -> Icons.Rounded.Settings
            SettingsTab.ABOUT -> Icons.Rounded.Info
            SettingsTab.DEBUG -> Icons.Rounded.Settings
        }
    }
}